﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

namespace DNA.Mvc.Notification
{
    /// <summary>
    /// Define the methods to send the message to subscribers.
    /// </summary>
    public interface ISubscriptionSender
    {
        /// <summary>
        /// Send the message to subscribers.
        /// </summary>
        /// <param name="subscribers">The user name list of the sbscribers.</param>
        /// <param name="message">The message object to send.</param>
        void Send(string[] subscribers, IMessage message);

        /// <summary>
        /// Get the message filter. Determin which message should send. Set "*" or "empty" to ingore.
        /// </summary>
        string Filter { get; }
    }
}
